package com.xiaoq.social.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.xiaoq.social.entity.FansTagEntity;
import com.xiaoq.social.repository.IFansTagRepository;
import com.xiaoq.social.service.IFansTagService;
import com.xiaoq.vo.PagingVo;
@Component
public class FansTagServiceImpl implements IFansTagService {

	@Autowired
	private IFansTagRepository fansTagRep;
	
	@Override
	public boolean addFansTag(FansTagEntity fansTag) {
		
		return fansTagRep.addFansTag(fansTag);
	}

	@Override
	public boolean delFansTag(String userId, String tgtId) {
		
		return fansTagRep.delFansTag(userId, tgtId);
	}

	@Override
	public List<FansTagEntity> fansTagList(String tgtId, List<String> tags, PagingVo pvo) {
		
		return fansTagRep.fansTagList(tgtId, tags, pvo);
	}

	@Override
	public boolean addTag(String tgtId, String userId, List<String> tags) {
		
		return fansTagRep.addTag(tgtId, userId, tags);
	}

	@Override
	public Long findFansNum(String tgtId) {
		return fansTagRep.findFansNum(tgtId);
	}

}
